import {DIC} from "@/store/dictionary";
import {SYSTEM_PREFIX} from "@/store/constant";

export const tableOption = {
  height: 'auto',
  calcHeight: 210,
  searchShow: true,
  searchMenuSpan: 6,
  tip: false,
  border: true,
  index: true,
  addBtn: false,
  viewBtn: true,
  selection: true,
  indexLabel: "序号",
  column: [
    {
      label: "账户名称",
      prop: "accountName",
      rules: [{
        required: true,
        message: "请输入账户名称",
        trigger: "blur"
      }]
    },
    {
      label: "状态",
      prop: "status",
      type: "select",
      dicData: DIC.accountStatus,
      rules: [{
        required: true,
        message: "请输入状态",
        trigger: "blur"
      }]
    },
    {
      label: "创建人",
      prop: "createUser",
      display: false,
      dicUrl: SYSTEM_PREFIX + '/user/all-user',
      props: {
        label: 'realName',
        value: 'id'
      }
    },
    {
      label: "创建时间",
      prop: "createTime",
      display: false
    },
    {
      label: "备注",
      prop: "remark"
    }
  ]
}
